#pragma once
#include <osg/Vec3d>

#include "CmdHandler3.h"

class Ent2D;
class UCS;
class Offset2DHandler : public CmdHandler3
{
	Q_OBJECT
public:
	Q_INVOKABLE Offset2DHandler();
	~Offset2DHandler();

	virtual void input(const QVariant& data, const QString& rawInput, CommandSource cs) override;

	double m_offset;
	osg::Vec3d m_start;
	osg::Vec3d m_end;
	std::set<std::shared_ptr<Ent2D>> m_origins;
	UCS* m_ucs;
};
